cmake_minimum_required(VERSION 3.15)
project(velodyne_gazebo_plugins)
set(CMAKE_CXX_STANDARD 14)
# 加载gazebo
find_package(gazebo REQUIRED)
include_directories(
        include/velodyne_gazebo_plugins
        ${GAZEBO_INCLUDE_DIRS}
)
link_directories(${GAZEBO_LIBRARY_DIRS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
# 动态库SHARED 生成*.so文件
add_library(gazebo_ros_velodyne_laser src/GazeboRosVelodyneLaser.cpp)
target_link_libraries(gazebo_ros_velodyne_laser ${GAZEBO_LIBRARIES})
